<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>发送短息</title>
<jsp:include page="/WEB-INF/backstage/util.jsp"/>
<script type="text/javascript">
	function test(obj) {
		var b = obj.value;
		var sp = document.getElementById("sp");
		if (b.length < 100) {
			sp.innerText = b.length + "/250"
		} else {
			obj.value = b.substring(0, 250);
			sp.innerText = "250/250";
		}
	}
	
	$(document).ready(function(){
		$("#btn").click(function(){//绑定
			/* alert("ghvvv"); */
			formName.action="/bsc/Bis_sms_record/selectBis_sms_record";//跳转
			formName.submit();
		});
	});
</script>
</head>
<body>
	<form action="/bsc/Bis_sms_record/saveRecord" method="post" id="formName">
		<fieldset>
			<legend>发送短息</legend>
			<table border="1">
				<tr>
					<td width="10%" height="50%">收件人：</td>
					<td><input type="text" name="mobile" placeholder="请输入电话号码" ></td>
				</tr>
				<tr>
					<td width="10%" height="50%">短信内容：</td>
					<td><textarea rows="5" cols="50" id="tx" onkeyup=" test(this)" placeholder="请输入发送内容" name="content"></textarea><span id="sp">0/220</span></td>
				</tr>
			</table>
			
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="submit" value="发送短信" class="btn btn-primary">
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="button" value="关闭" id="btn" class="btn btn-primary"/><!-- onclick="javascript:history.back(-1);" 返回上一级 -->
		</fieldset>
	</form>
</body>
</html>